package org.pfc.porlapatilla.model;

import java.util.Date;

/**
 * This class represents the comment that an user can post in a application
 * product.
 * 
 * @author jorgepolobermudez
 * 
 */
public class Comment {

    /**
     * The comment text.
     */
    private String text;

    /**
     * The comment date.
     */
    private Date date;

    /**
     * The comment publisher.
     */
    private String publisher;

    /**
     * Default constructor
     */
    public Comment() {
	super();
    }

    /**
     * Creates a new comment.
     * 
     * @param text
     *            The new comment text.
     * @param date
     *            The new comment date.
     * @param publisher
     *            The new comment publisher.
     */
    public Comment(String text, Date date, String publisher) {
	this.text = text;
	this.date = date;
	this.publisher = publisher;
    }

    /**
     * Get the comment text.
     * 
     * @return The comment text.
     */
    public String getText() {
	return text;
    }

    /**
     * Set the comment text.
     * 
     * @param text
     *            The text to set.
     */
    public void setText(String text) {
	this.text = text;
    }

    /**
     * Get the comment date.
     * 
     * @return The comment date.
     */
    public Date getDate() {
	return date;
    }

    /**
     * Set the comment date.
     * 
     * @param date
     *            The date to set.
     */
    public void setDate(Date date) {
	this.date = date;
    }

    /**
     * Get the comment publisher.
     * 
     * @return The comment publisher.
     */
    public String getPublisher() {
	return publisher;
    }

    /**
     * Set the comment publisher.
     * 
     * @param publisher
     *            The publisher to set.
     */
    public void setPublisher(String publisher) {
	this.publisher = publisher;
    }

}
